package com.jzo2o.foundations.service;

import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationTypeSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeSimpleResDTO;

import java.util.List;

public interface HomeService {

    /**
     * 首页服务列表
     * @param regionId
     * @return
     */
    List<ServeCategoryResDTO> firstPageServeList(Long regionId);
    /**
     *  服务类型列表缓存
     * @param regionId
     * @return
     */
    List<ServeAggregationTypeSimpleResDTO> serveTypeList(Long regionId);
    /**
     * 查询热门服务列表并缓存
     * @param regionId
     * @return
     */
    List<ServeAggregationSimpleResDTO> hotServeList(Long regionId);
    /**
     * 根据id查询服务详情并缓存
     * @param id
     * @return
     */
    ServeAggregationSimpleResDTO ServeDetail(Long id);

    List<ServeSimpleResDTO> search(String cityCode, String keyword, Long serveTypeId);
}